﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ClientValidation.aspx.cs" Inherits="ClientValidation" %>

<%@ Register assembly="Cwing.UI.Validation" namespace="Cwing.UI.Controls" tagprefix="cwvf" %>

<%@ Register src="WebUserControl.ascx" tagname="WebUserControl" tagprefix="uc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>

</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <cwvf:ValidationTextBox ID="ValidationTextBox1" runat="server" 
            Path="//Control[@ID='Number']" Type="Server" 
            ValidationSummary="ErrorList1"></cwvf:ValidationTextBox>
    
    </div>
    <cwvf:ErrorList ID="ErrorList1" runat="server" Title="Title Test">
    </cwvf:ErrorList>
    <input id="Button2" type="button" value="button" onclick="javascript:return gvInstance().Validate();" />
    <asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" OnClientClick="javascript:return gvInstance().Validate();" />
    <p>
        <cwvf:ValidationTextBox ID="ValidationTextBox2" runat="server" 
            Path="//Control[@ID='Email']" Type="Client" 
            ValidationSummary="ErrorList1"></cwvf:ValidationTextBox>
    </p>
    <uc1:WebUserControl ID="WebUserControl1" runat="server" />
    </form>
</body>
</html>
